Closed
Bug 1231728
Opened 9 years ago
Closed 9 years ago
Enable [no-dupe-args, no-dupe-keys, no-duplicate-case, no-obj-calls, no-with] rules
Categories
(Firefox :: General, defect)
Firefox
General
Tracking
()
RESOLVED
FIXED
Firefox 45
Tracking | Status | |
---|---|---|
firefox45 | --- | fixed |
People
(Reporter: Felipe, Assigned: Felipe)
References
Details
Attachments
(3 files)
7.78 KB,
patch
|
mak
:
review+
|
Details | Diff | Splinter Review |
873 bytes,
patch
|
markh
:
review+
|
Details | Diff | Splinter Review |
2.06 KB,
patch
|
mossop
:
review+
|
Details | Diff | Splinter Review |
We can easily enable the following rules everywhere:
- no-dupe-args
- no-dupe-keys
- no-duplicate-case
- no-obj-calls
- no-with
Also, we can enable in browser/
- no-redeclare
- consistent-return
There are too many hits for these latter two in toolkit but I didn't want to let that block enabling them in browser/ only.
Assignee | ||
Comment 1•9 years ago
|
||
Attachment #8697325 -
Flags: review?(mak77)
Assignee | ||
Comment 2•9 years ago
|
||
Attachment #8697326 -
Flags: review?(markh)
Assignee | ||
Comment 3•9 years ago
|
||
Attachment #8697327 -
Flags: review?(dtownsend)
Comment 4•9 years ago
|
||
Comment on attachment 8697327 [details] [diff] [review]
Enable rules
Review of attachment 8697327 [details] [diff] [review]:
-----------------------------------------------------------------
r+++ would review again!
Attachment #8697327 -
Flags: review?(dtownsend) → review+
Updated•9 years ago
|
Attachment #8697326 -
Flags: review?(markh) → review+
Comment 5•9 years ago
|
||
Comment on attachment 8697325 [details] [diff] [review]
Fixes some eslint errors/warning to enable more rules
Review of attachment 8697325 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/base/content/browser.js
@@ +328,5 @@
> var backDisabled = backBroadcaster.hasAttribute("disabled");
> var forwardDisabled = forwardBroadcaster.hasAttribute("disabled");
> if (backDisabled == aWebNavigation.canGoBack) {
> if (backDisabled)
> + backBroadcaster.removeAttribute('disabled');
I don't understand this change.
Assignee | ||
Comment 6•9 years ago
|
||
(In reply to Marco Bonardo [::mak] from comment #5)
> Comment on attachment 8697325 [details] [diff] [review]
> Fixes some eslint errors/warning to enable more rules
>
> Review of attachment 8697325 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> ::: browser/base/content/browser.js
> @@ +328,5 @@
> > var backDisabled = backBroadcaster.hasAttribute("disabled");
> > var forwardDisabled = forwardBroadcaster.hasAttribute("disabled");
> > if (backDisabled == aWebNavigation.canGoBack) {
> > if (backDisabled)
> > + backBroadcaster.removeAttribute('disabled');
>
> I don't understand this change.
sorry, I was testing the double-quotes rules and accidentally saved this in the file
Comment 7•9 years ago
|
||
Comment on attachment 8697325 [details] [diff] [review]
Fixes some eslint errors/warning to enable more rules
Review of attachment 8697325 [details] [diff] [review]:
-----------------------------------------------------------------
ok, r=me with the quotes fixed
Attachment #8697325 -
Flags: review?(mak77) → review+
Comment 9•9 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/54bb45fa0e7d
https://hg.mozilla.org/mozilla-central/rev/f4ce7427347e
https://hg.mozilla.org/mozilla-central/rev/11c67a7b46b5
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox45:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 45
You need to log in
before you can comment on or make changes to this bug.
Description
•